import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsHelp {
  helpDesc: string;
  msdsEntprId?: number;
  id?: number;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsHelpHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsHelp 信息*/
  public addMsdsHelp(param: MsdsHelp): Observable<number> {
    return this.http.post('/msdsHelp', param, {needSuccessInfo: true});
  }

  /*修改msdsHelp信息*/
  public editMsdsHelp(param: MsdsHelp): Observable<void> {
    return this.http.put('/msdsHelp', param, {needSuccessInfo: true});
  }

  /*查询msdsHelp详情*/
  public getMsdsHelpDetail(msdsEntprId: number): Observable<MsdsHelp> {
    return this.http.get('/msdsHelp/' + msdsEntprId);
  }


}
